//map.js
// 换成本地的服务器js文件即可
let script = [
    // "./js/hik/jsencrypt.min.js",
    "./js/hik/web-control_1.2.7.min.js"
    //如果有更多的JS要引用 ，也一起放到这个数组中
];
export default new Promise(resolve => {
    let loads = script.map(v => {
        let script = document.createElement("script");
        script.type = "text/javascript";
        script.async = false;
        script.src = v;
        document.head.appendChild(script);
        return script;
    });
    let end = loads.pop();
    end.onload = resolve;
});
